#include <stdio.h>
#include <ctype.h>

int main() {
    int a = 0, b = 0, c = 0, d = 0;
    int e = 0;
    char ch;

    while (e < 10) {
        ch = getchar();

        if (isalpha(ch)) {
            a++;
        } else if (ch == ' ' || ch == '\n') {
            b++;
        } else if (isdigit(ch)) {
            c++;
        } else {
            d++;
        }

        e++;
    }

    printf("letter = %d, blank = %d, digit = %d, other = %d\n", a, b, c, d);

    return 0;
}
